package com.applet.dishflavor.service.impl;

import com.applet.dishflavor.mapper.DishFlavorMapper;
import com.applet.dishflavor.service.DishFlavorService;
import com.applet.entity.DishFlavor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 菜品口味 serviceImpl
 */
@Slf4j
@Service
public class DishFlavorServiceImpl implements DishFlavorService {

    @Resource
    private DishFlavorMapper dishFlavorMapper;




    /**
     * 菜品口味
     *        根据菜品id 查询口味集合
     * @param dishId
     */
    @Override
    public List<DishFlavor> selectDishFlavorListByDishId(Long dishId) {
        return dishFlavorMapper.selectDishFlavorListByDishId(dishId);
    }
}
